package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author spt
 * @description 预约设置DAO
 * @date 2019/9/29
 **/
public interface OrderSettingDao {
    //获取预约设置信息
    OrderSetting selectOneOrderSetting(Date orderDate);

    void insert(@Param("orderSettings") List<OrderSetting> orderSettings);

    List<OrderSetting> selectListOrderSetting(@Param("date") String date);

    void update(OrderSetting orderSetting);

    void deleteByDate(@Param("date") String date);

    Integer selectOneReservations(OrderSetting orderSetting);

    Integer selectCountOrderSettingByDay(Date orderDate);

    void updateReservations(Date orderDate);

    Integer selectCountCanOrder(Date orderDate);
}
